package com.wanxi.mapper;


import com.wanxi.entity.User;
import com.wanxi.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface UserMapper {
    Integer addUser(UserFrontDTO user);
    Integer addRole(@Param("id") Long id, @Param("roleId") Integer roleId);
    Integer perfectInformation( UserInfoDTO user);
    List<DoctorDTO> findSettledStatus(Long id);
    List<User> SwitchDoctor(Long id);
    List<UserDTO> getUserFront(UserQuery userQuery);
    List<User> getGuardianByCondition(UserQuery userQuery);
    Integer updateGuardianState(@Param("id") Long id,@Param("state")Integer state);
    User getUserByphoneNumber(String phoneNumber);
    Integer updatePassword(@Param("id") Long id ,@Param("password")String newPassword);
    String getPassword(Long id);
}
